<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <div id="hello">
        <!-- :key方便元素后续增删节点 效率更高 -->
        <div v-for="(item, index) in info1" :key="item">{{index}}+{{item}}</div>
        <div v-for="item in info1">{{item}}</div>

        <!-- 这个要按value,key的顺序来哦  遍历对象-->
        <div v-for='(value,key,index) in info2' :key="key">{{index}}+{{key}}+{{value}}</div>
        <!-- item in object 会遍历对象value值 -->
        <div v-for=" item in info2" :key="item">{{item}}</div>
    </div>
    <script src="../vue.js"></script>
    <script>
        const vue01 = new Vue({
            el: '#hello',
            data: {
                message: 'hello vuejs',
                info1:['lin','kobe','james'],
                info2:{
                    name:'lin',
                    age:200,
                    sex:1,
                }
            }
        })
    </script>

</body>

</html>